package top.usts.springframework.beans.factory.config;

import top.usts.springframework.beans.factory.HierarchicalBeanFactory;

/**
 * @description:
 * @author: CJ
 * @date: 2022/2/22
 */
public interface ConfigureableBeanFactory extends HierarchicalBeanFactory,SingletonBeanRegistry{

    //单例模式
    String SCOPE_SINGLETON = "singleton";

    //原型模式
    String SCOPE_PROTOTYPE = "prototype";


    /**
     * 增加 BeanPostProcessor
     * @param beanPostProcessor
     */
    void addBeanPostProcessor(BeanPostProcessor beanPostProcessor);

    void destroySingletons();

}
